﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Constants
/// </summary>
public class Constants
{
	public Constants()
	{
		//
		// TODO: Add constructor logic here
		//
	}
}

/// <summary>
/// 
/// </summary>
public class LanguageConst
{
    public static String ARABIC = "ar";
    public static String CHINESE = "zh";
    public static String CHINESE_SIMPLIFIED = "zh-CN";
    public static String CHINESE_TRADITIONAL = "zh-TW";
    public static String CHINESE_TRADITIONAL_GOOGLE = "zh-hant";
    public static String DUTCH = "nl";
    public static String ENGLISH = "en";
    public static String FRENCH = "fr";
    public static String GERMAN = "de";
    public static String GREEK = "el";
    public static String ITALIAN = "it";
    public static String JAPANESE = "ja";
    public static String KOREAN = "ko";
    public static String PORTUGESE = "pt";
    public static String RUSSIAN = "ru";
    public static String SPANISH = "es";
    public static String UNKNOWN = "";  
}

public class UserConst
{
}

namespace Citiport.Core
{
    /// <summary>
    /// Class contains all constant variables
    /// </summary>
    public class Const
    {
        /// <summary>
        /// key for cookie of user id
        /// </summary>
        public const String COOKIE_USER_ID = "Citiport.cookie.user.id";
        /// <summary>
        /// key for cookie of user preferred language
        /// </summary>
        public const String COOKIE_USER_LANG = "Citiport.cookie.user.language";
        /// <summary>
        /// key for cookie of user accessible language
        /// </summary>
        public const String COOKIE_USER_ACCESSIBLE_LANG = "Citiport.cookie.user.language.accessible";
        /// <summary>
        /// key for session of user id
        /// </summary>
        public const String SESSION_USER_ID = "Citiport.session.user.id";
        /// <summary>
        /// key for session of user preferred language
        /// </summary>
        public const String SESSION_USER_LANG = "Citiport.session.user.language";
        /// <summary>
        /// Path of the GeoIP.dat for country lookup
        /// </summary>
        public const String IPGEO_PATH = "App_Data\\GeoIP.dat";
    }
}

namespace Citiport.Util.Language
{
    /// <summary>
    /// Langauge Constants
    /// </summary>
    public class Language
    {
        public static String ARABIC = "ar";
        public static String CHINESE = "zh";
        public static String CHINESE_SIMPLIFIED = "zh-CN";
        public static String CHINESE_TRADITIONAL = "zh-TW";
        public static String DUTCH = "nl";
        public static String ENGLISH = "en";
        public static String FRENCH = "fr";
        public static String GERMAN = "de";
        public static String GREEK = "el";
        public static String ITALIAN = "it";
        public static String JAPANESE = "ja";
        public static String KOREAN = "ko";
        public static String PORTUGESE = "pt";
        public static String RUSSIAN = "ru";
        public static String SPANISH = "es";
        public static String UNKNOWN = "";
    }
}

namespace Citiport.UI
{
    public class Const
    {
        public const String SEARCH_KEYWORD_PARAMETER_NAME = "keyword";
    }
}


/* NOT FINISHED 04/18/2008
public class Language
{
    public String Code { set; get; }

    public long No { set; get; }

    private static Language[] Languages = new Language[0];

    protected Language(String code, long no)
    {
        this.Code = code;
        this.No = no;
        Language[] oldlangs = Languages;
        Languages = new Language[oldlangs.Length + 1];
        System.Array.Copy(oldlangs, 0, Languages, 0, oldlangs.Length);
        Languages[oldlangs.Length] = this;
    }

}
*/